# coding: utf-8
# @Author: cyl
# @File: platform.py
# @Time: 2023/02/20 23:48:10
import platform


class PlatformFile:
    """支持mac windows转换路径"""

    @staticmethod
    def filePathPlat(prefix_dir: str, file_path: str) -> str:
        if platform.system() == "Windows":
            return prefix_dir + file_path
        else:
            abs_path = prefix_dir + file_path
            return abs_path.replace("\\", '/')
